# -*- coding:utf-8 -*-
# File Name:create_mysql.py
# Author:jing
# Date:2018/12/18
import sys

sys.path.append('../src')
import requests
from ygframe.scope.scope import Scope

from api.v1.resource import Resource
from config import LOCAL_HOST, PORT

__author__ = 'jing'

if __name__ == '__main__':
    requests.post('http://{}:{}/{}/{}/api/v1/resource'.format(
        LOCAL_HOST, PORT,
        Scope.get_system_name(), Scope.get_subsystem_name()

    ), json=Resource.__post_request_sample__[1][0])
